package com.punai.system.service;

import com.punai.common.core.domain.entity.SysCompany;

import java.util.List;

public interface ISysCompanyService {
    List<SysCompany> selectCompanyList(SysCompany company);

    void checkCompanyDataScope(Long id);

    SysCompany selectCompanyById(Long id);

    String checkCompanyNameUnique(SysCompany company);

    String checkCompanyPrxUnique(SysCompany company);

    int insertCompany(SysCompany company);

    int selectNormalChildrenCompanyById(Long id);

    int updateCompany(SysCompany company);

    boolean hasChildByCompanyId(Long deptId);

    boolean checkCompanyExistUser(Long id);

    int deleteCompanyById(Long id);

    SysCompany treeCompanyList();
}
